<?php
/*///////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*///////////////// Additional Child Functions Start                                                               */
/*///////////////////////////////////////////////////////////////////////////////////////////////////////*/

#add javascript files to head
add_action('wp_head', 'js_in_head');

function js_in_head(){
	if(is_home()){
		?>
		<script type="text/javascript" src="<?php echo get_stylesheet_directory_uri(); ?>/custom.js"></script>
		<?php 
	}
}

function kb_format_link_list($array = null){
	$output = "";
	$kb = 1;
	foreach ($array as $item): 
  	$output .= '<a href="'.$item->link.'">'.$item->name.'</a>';
		if($kb <> count($array)){
			$output .= ', ';
		}
		$kb++;
	endforeach;
	return $output;
}

/*
#create custom post types
add_action( 'init', 'create_custom_post_types' );

function create_custom_post_types() {
	
	$project_labels = array(
		'name' => __( 'Projects' ),
		'singular_name' => __( 'Project' )
  );
	
  $project_args = array(
    'labels' => $project_labels,
    'supports' => array( 'title', 'editor', 'excerpt', 'custom-fields', 'thumbnail' ),
    'public' =>  true
  ); 
	
	register_post_type( 'project', $project_args );
}

#create custom taxonomies
add_action( 'init', 'create_project_taxonomies', 0 );

function create_project_taxonomies() 
{
 $technology_labels = array(
    'name' => _x( 'Techologies', 'taxonomy general name' ),
    'singular_name' => _x( 'Technology', 'taxonomy singular name' ),
  ); 

  register_taxonomy('technology','project',array(
    'hierarchical' => false,
    'labels' => $technology_labels,
    'show_ui' => true,
    'show_admin_column' => true,
    'update_count_callback' => '_update_post_term_count',
    'query_var' => true,
    'rewrite' => array( 'slug' => 'technology' ),
  ));
}

*/
     
/*///////////////////////////////////////////////////////////////////////////////////////////////////////*/
/*///////////////// Additional Child Functions End                                                                 */
/*///////////////////////////////////////////////////////////////////////////////////////////////////////*/
?>